package com.zj.sa_token.entity;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author li
 * @date 2024-01-12 11:03:58
 * @description
 */
@Data
@TableName("user_info")
@ApiModel(value = "", description = "对象 userInfo")
public class UserInfoEntity extends Model<UserInfoEntity> {

    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id")
    private String id;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;

    /**
     * 角色
     */
    @ApiModelProperty(value = "角色")
    @TableField(value = "role")
    private String role;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @TableField(value = "user_name")
    private String userName;
}
